<template>
  <div>
    <el-card class="exclusive-box-card" :body-style="{ padding: 0 }" shadow="hover" @click.native="goMv">
      <div class="exclusive-img">
        <el-image style="width: 100%; border-radius: 6px" :src="pic" alt=""></el-image>
        <div class="el-icon-caret-right" style="font-size: 24px; color: #fff"></div>
      </div>
      <!-- 独家放送名称 -->
      <p class="exclusive-info">{{ name }}</p>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Exclusive',
  props: {
    id: {
      type: Number,
      required: true
    },
    name: {
      type: String,
      default: ''
    },
    pic: {
      type: String,
      default: ''
    }
  },
  data() {
    return {}
  },
  methods: {
    goMv() {
      this.$router.push({
        path: '/mv',
        query: {
          id: this.id
        }
      })
    }
  }
}
</script>

<style lang="less" scoped>
.exclusive-box-card {
  width: 352px;
  height: 247px;
  cursor: pointer;
  .exclusive-img {
    position: relative;
    height: 198px;
    // 左上角播放图标样式
    .el-icon-caret-right {
      position: absolute;
      top: 5px;
      left: 5px;
      width: 24px;
      height: 24px;
      background-color: rgba(0, 0, 0, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 12px;
    }
  }
  .exclusive-info {
    padding: 2px 5px;
    text-align: left;
  }
}
</style>
